<template>
  <div>
    <el-form label-width="70px" :model="phone" :rules="rules">
      <el-form-item label="手机号" prop="number">
        <el-input v-model="phone.number"></el-input>
      </el-form-item>

      <el-form-item label="验证码" prop="code">
        <div class="flex">
          <el-input v-model="phone.code" class="mr-2"></el-input>
          <el-button size="small" type="primary">获取验证码</el-button>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
import { rules } from '../config/phone-config'

const phone = reactive({
  number: '',
  code: ''
})
</script>

<style scoped></style>
